#!/usr/bin/python
# Linux Layer Module v0.01
# by William Edwards 07-26-09
# 
# This module is designed to contain all Linux-specific commands that will not work on
# other operating systems.

import os

# This executes an nmap scan that will search for computers with SSH, and saves the hosts to a text file.
def nmap_scan(ip, subnet):
	os.system('nmap -p22 -PN -oG - ' + str(ip) + '/' + str(subnet) + " | awk '/open/{print $2}' > available_hosts.txt")
